package cloud.alibaba.study.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cloud.alibaba.study.entity.base.ResponseVo;

@FeignClient(value = "m-storage-service")
public interface IStorageService {

	@PostMapping("/storage/decrease")
	ResponseVo decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);

}
